package cn.ibizlab.odoo.core.odoo_bus.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_bus.domain.Bus_presence;
import cn.ibizlab.odoo.core.odoo_bus.filter.Bus_presenceSearchContext;

/**
 * 实体[Bus_presence] 服务对象接口
 */

public interface IBus_presenceService{
     Bus_presence get(Integer id) ;
     Bus_presence get(Bus_presence bus_presence) ;
     void updateBatch(List<Bus_presence> bus_presences, int batchSize) ;
     boolean remove(Integer id) ;
     void createBatch(List<Bus_presence> bus_presences, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean update(Bus_presence bus_presence) ;
     boolean create(Bus_presence bus_presence) ;

    /**
     * 查询集合 默认查询
     */
    Page<Bus_presence> searchDefault(Bus_presenceSearchContext context) ;

    /**
     * 根据用户查询
     */
     Page<Bus_presence> selectByOdoo_user(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Bus_presence convert2Domain(cn.ibizlab.odoo.core.client.model.Ibus_presence model ,Bus_presence domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ibus_presence convert2Model(Bus_presence domain , cn.ibizlab.odoo.core.client.model.Ibus_presence model);

}
